package com.zcc.testnginxhighperformance.controller;


import com.zcc.testnginxhighperformance.domain.Student;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StudentController {

    @Value("${server.port}")
    private Integer port;

    @RequestMapping("get")
    public Student get(Integer id){
        Student student = new Student(id, "zhucc" + id, id + 20, port);
        return student;
    }
}
